#!/usr/bin/env bash
echo "delete /qsapp/www/"

rm -rf ./qsapp/www

rm -rf ./qsapp/platforms/ios
rm -rf ./qsapp/platforms/android

echo "webpack building"

npm run build

mkdir dist

echo "move /dist to /www"

mv ./dist ./qsapp/www

echo "build ios"

cd qsapp
cordova platform add ios
cordova platform add android
